package org.jeecg.modules.Region.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.Region.entity.Region;
import org.jeecg.modules.Region.entity.RegionPerson;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 区域管理
 * @Author: jeecg-boot
 * @Date:   2023-02-18
 * @Version: V1.0
 */
public interface IRegionService extends IService<Region> {

	/**
	 * 添加一对多
	 *
	 * @param region
	 * @param ttRegionPersonList
	 */
	public void saveMain(Region region,List<RegionPerson> ttRegionPersonList) ;
	
	/**
	 * 修改一对多
	 *
   * @param region
   * @param ttRegionPersonList
	 */
	public void updateMain(Region region,List<RegionPerson> ttRegionPersonList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
